/**
 * 
 */
package study;

/**
 * @author admin
 *
 */
import java.io.*;
public class Test_3 {
	
	public void input()throws IOException{
		boolean flag=true;
		InputStream in=System.in;
		InputStreamReader inr=new InputStreamReader(in);
		BufferedReader br=new BufferedReader(inr);
		StringBuilder input=new StringBuilder();
		String s;
		
		//int i=-1;
		while(flag){
			s=br.readLine();
			if(s.equalsIgnoreCase("N")){
				flag=false;
				break;
			}
			input.append(s+"\r\n");
		}
		
		System.out.println(input);
		
		inr.close();
	}
//	public void outputStream(String value)throws IOException{
//		
//	}
//
	/**
	 * @param args
	 */
	public static void main(String[] args)throws IOException {
		// TODO Auto-generated method stub
		Test_3 t3=new Test_3();
		t3.input();

	}

}
